﻿/// -----------------------------------------------------------------
/// Keyword.cs: Object view of a Keyword entry in the Database.
/// License: see http://mve.codeplex.com/license; All Rights follows the MS-PL
/// Current owner: shiniwa
/// The project decription: please refer to http://codeplex.com/mve/
/// -----------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVEContentSvc.KeywordOperations
{
    /*
     * 日本SGI株式会社
     * ヨハンソン・ヘンリク
     * johansson@sgi.co.jp
     * 
     * Change Log:
     * ---------------------------------------------------------------------------
     * 2009.01.07	Johansson Henrik		Class Created.
     * 
     */

    /// <summary>
    /// Object view of a Keyword entry in the Database.
    /// Use this class to represent a single Keyword from the Databse.
    /// </summary>
    /// <seealso cref="KeywordLoader"/>
    /// <remarks>INSERT:Creds</remarks>
    internal class Keyword : IComparable<Keyword>
    {
        public int id { get; set; }
        public int ClipId { get; set; }
        public int SegmentId { get; set; }
        public int UserId { get; set; }
        public string KeywordString { get; set; }

        #region IComparable<Segment> Members

        public int CompareTo(Keyword other)
        {
            return this.KeywordString.CompareTo(other.KeywordString);
        }

        #endregion
    }
}
